<template>
	<view :style="{ width: windowWidth + 'px', height: windowHeight + 'px' }">
		<!-- <image :style="{ width: windowWidth + 'px', height: windowHeight + 'px' }" mode="scaleToFill" src="../../image/openg.png"></image> -->
	</view>
</template>

<script>
// import { getStorage } from '@/utils/setStorage.js';
export default {
	data: function() {
		return {
			windowWidth: 0,
			windowHeight: 0
		};
	},
	created() {
		const that = this;
		uni.getSystemInfo({
			success(res) {
				that.windowWidth = res.screenWidth;
				that.windowHeight = res.screenHeight;
			}
		});
	},
	onShow() {
		setTimeout(() => {
			// #ifdef APP-PLUS
			// uni.switchTab({
			// 	url: '/pages/home/index'
			// });
			uni.reLaunch({
				url: '/pages/home/index'
			})
			// #endif
			// #ifdef H5
			this.$Router.push('/pages/home/index');
			// #endif
			// #ifdef APP-PLUS
			plus.navigator.closeSplashscreen();
			// #endif
		}, 500);
	},
	methods: {}
};
</script>

<style></style>
